package online.hxstart.code.concurrent.chapter10;

/**
 * @author huxing
 * @date 2019/7/12 星期五 19:19
 * @describe
 */
public class LoadSimpleClass {

  public static void main(String[] args)
      throws ClassNotFoundException, IllegalAccessException, InstantiationException {
    BrokerDelegateClassLoader classLoader = new BrokerDelegateClassLoader("D:/work/");

    Class<?> aClass = classLoader.loadClass("SimpleClass");

    System.out.println(classLoader.getParent());
    aClass.newInstance();
  }
}
